package org.CurrencyDAO;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;

import org.CurrencyDAO.entity.CurrencyExchange;

public interface CurrencyExchangeDAO {
	
	CurrencyExchange addCurrencyExchange(CurrencyExchange currencyExchange, Long idCurrency);
	
	CurrencyExchange getCurrencyExchange(Long currencyId, Date date);
	
	void updateCurrencyExchange(CurrencyExchange currencyExchange);
	
	void deleteCurrencyExchange(CurrencyExchange currencyExchange);

	Long getBiggestDifferenceExchange(Date dateFrom, Date dateTo);

	Collection<CurrencyExchange> getTop5Exchange(Long idCurrency);

	BigDecimal getMinExchange(Date dateFrom, Date dateTo, Long idCurrency);

	BigDecimal getMaxExchange(Date dateFrom, Date dateTo, Long idCurrency);
	
	void deleteCurrencyExchange(Long idCurrency, Date date);
	
}
